<h1>Edit Supplier</h1>
<p>Please enter the Supplier's information below.</p>
<?php if(!empty($message)) {?>
<div class="alert alert-error">
<button type="button" class="close" data-dismiss="alert">&times;</button>
<?php echo $message;?></div>
<?php }?>
<?php echo form_open(current_url());?>
<table width="60%" align="center" class="table-condensed">  
        <tr> <td><b>  customer Name: </b></td>
            <td><?php echo form_input($name);?></td>
        </tr>  
     	<tr><td><b>  Contact Person: </b></td>
            <td><?php echo form_input($contact_person);?></td>
     </tr>  
     
		 <tr> 
     	  <td> <b>Tin Number:</b> </td>
    	  <td><?php echo form_input($tin_no);?></td>
     </tr>   
      <tr> 
     	  <td> <b>Phone Number:</b> </td>
    	  <td><?php echo form_input($phone);?></td>
     </tr> 
	  <tr> 
     	  <td> <b>Mobile Number:</b> </td>
    	  <td><?php echo form_input($mobile);?></td>
     </tr>   
       <tr> 
     	  <td width="31%"> <b>Opening Balance:</b> </td>
    	  <td colspan="2"><?php echo form_input($opening_balance);?></td>
     </tr> 
	 <tr>
	 <td><b>Opening Balance Type</b></td>	
	  <td><label class="checkbox">
		<input type="radio"  name="type" value="Debit" <?php if($user->type == 'Debit' ){ ?> checked='checked' <?php } ?>>:Debit
		</label>
		<label class="checkbox">
		<input type="radio"   name="type" value="Credit"  <?php if($user->type == 'Credit' ){ ?> checked='checked' <?php } ?>  >:Credit
		</label>
	</td>
	</tr>
	  <tr> 
     	  <td> <b>Email Address:</b> </td>
    	  <td><?php echo form_input($email);?></td>
     </tr>   
      <tr> 
     	  <td> <b>Address:</b> </td>
    	  <td>  <?php echo form_textarea($address, '', 'style="height : 50px;"');?></td>
     </tr>   
      
        
<tr><td>&nbsp;</td> <td><?php echo form_submit('submit', 'Update Supplier', 'class="btn btn-success"');?></td></tr>
</table>
<?php echo form_close();?>
